//package cn.icanci.swagger.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.service.Contact;
//import springfox.documentation.service.VendorExtension;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
//import java.util.ArrayList;
//
///**
// * @Author: icanci
// * @ProjectName: Spring-Boot-Cases
// * @PackageName: cn.icanci.swagger.config
// * @Date: Created in 2020/7/18 11:03
// * @ClassAction: Swagger 配置文件 入门配置
// */
//@Configuration
////@EnableSwagger2
//public class SwaggerConfig01 {
//    /**
//     * 配置Swagger的bean实例
//     *
//     * @return 返回 Docket 对象
//     */
//    @Bean
//    public Docket docket() {
//        return new Docket(DocumentationType.SWAGGER_2)
//                .apiInfo(apiInfo());
//    }
//
//    /**
//     * 配置Swagger信息  = apiInfo
//     *
//     * @return 返回 ApiInfo 对象
//     */
//    @Bean
//    public ApiInfo apiInfo() {
//        Contact contact = new Contact("icanci", "https://icanci.oschina.io/", "icanci@foxmail.com");
//        return new ApiInfo(
//                "JUST-Admin-Web-API",
//                "Just Do It",
//                "v1.0",
//                "https://icanci.oschina.io/",
//                contact,
//                "Apache 2.0",
//                "http://www.apache.org/licenses/LICENSE-2.0",
//                new ArrayList<VendorExtension>());
//    }
//}
